class Person{
    name: string
    constructor( n: string ) {
        this.name = n
    }

    run(): void{
        console.log(this.name);
        
    }
}

let p = new Person( 'xiaohui' )
p.run()